package com.jf.identity.entity;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 批量违纪/缺考
 *
 * @author FCG
 */
public class FoulFeedBackBatch extends ExamBaseParam implements Serializable {
    private static final long serialVersionUID = 7497990652262746839L;
    /**
     * 违纪/缺考标记,true:记录违纪,false:取消违纪
     */
    @NotNull(message = "违纪/缺考标记 不能为空")
    private Boolean foulStatus;
    /**
     * 违纪/缺考 考生信息
     */
    @Valid
    @NotEmpty(message = "考生信息 不能为空")
    private List<FoulFeedBackInfo> examinees;
    /**
     * 现场上报缺考：0缺考  1正常
     */
    private String sitAbsent;
    /**
     * 上报时间
     */
    private Date dateTime;

    public Boolean getFoulStatus() {
        return foulStatus;
    }

    public void setFoulStatus(Boolean foulStatus) {
        this.foulStatus = foulStatus;
    }

    public List<FoulFeedBackInfo> getExaminees() {
        return examinees;
    }

    public void setExaminees(List<FoulFeedBackInfo> examinees) {
        this.examinees = examinees;
    }

    public String getSitAbsent() {
        if (this.foulStatus == null) {
            return sitAbsent;
        }
        return foulStatus ? "0" : "1";
    }

    public void setSitAbsent(String sitAbsent) {
        this.sitAbsent = sitAbsent;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }
}
